home *** CD-ROM | disk | FTP | other *** search
/ Quarterdeck InternetSuite / Quarterdeck InternetSuite.iso / qsockpro.qip / CLOUD9.MPS < prev    next >
Encoding:
Text File  |  1996-03-20  |  1.1 KB  |  51 lines

  1. # Cloud9 Direct SLIP/PPP script - TCB
  2. # Note that Cloud 9 does not do Dynamic IP addressing, and does not echo
  3. # your IP address back at you after connection (so it could be grabbed by
  4. # a login script).  The user *needs* to set their IP address by hand!
  5.  
  6. STRING username
  7. STRING password
  8. STRING framing
  9.  
  10. # TRACE ON
  11. SetTimeout      60                      # reset maximum script timeout
  12.  
  13. # Get username from access method
  14. CfgGetValue "Username" username
  15. IF result = 0 THEN
  16.     ABORT "Can't load Username from qdeck.ini"
  17. ENDIF
  18.  
  19. # get password from access method
  20. CfgGetValue "Password" password
  21. IF result = 0 THEN
  22.     ABORT "Can't load Password from qdeck.ini"
  23. ENDIF
  24.  
  25. # get framing layer (MPPPP, MPSLIP)
  26. # abort with an error if we can't read the Framing setting
  27. CfgGetValue "Framing" framing
  28. IF result = 0 THEN
  29.     ABORT "Can't read 'Framing' setting from qdeck.ini"
  30. ENDIF
  31.  
  32. CommWaitFor "please?"
  33.  
  34. IF framing="MPPPP" THEN
  35.     CommSend "ppp%r"
  36. ENDIF
  37.  
  38. IF framing="MPSLIP" THEN
  39.     CommSend "slip%r"
  40. ENDIF
  41.  
  42. CommWaitFor "sername:"
  43.     CommSend username
  44.     CommSend "%r"
  45.  
  46. CommWaitFor "assword:"
  47.     CommSend password
  48.     CommSend "%r"
  49.  
  50. END
  51.